package Hxw3DEngine.core.Resource.animation
{
	import Hxw3DEngine.core.Resource.animation.AnimationClipBase;
	public class VertexAnimationClip extends AnimationClipBase
	{
		//当前帧的数据
		public var vertices:Vector.<Vector.<Number>>;
		public var targetStreamComponents:int;
	
		public function VertexAnimationClip(name:String,_data:*,_targetStreamComponents:int)
		{
			vertices = _data as Vector.<Vector.<Number>>;
			super(name, vertices.length);
			targetStreamComponents = _targetStreamComponents;
		}
		override public function getAnimationData(frame:int):* {
			return vertices[frame];
		}		
	}
}